import examineComponent from '../logComponent/examineComponent.vue' //用于企业端上报
import postComponent from '../logComponent/postComponent.vue' //4-下架上报
import pullBlackComponent from '../logComponent/pullBlackComponent.vue' //5-拉黑上报//拉黑与还原==会员
import feedbackComponent from '../logComponent/feedbackComponent.vue' //7-反馈上报
import entryException from '../logComponent/entryException.vue' //8-入职异常上报
import leaveException from '../logComponent/leaveException.vue' //9-保障内离职异常上报
import breakComponent from '../logComponent/breakComponent.vue' //10-爽约

import personalCash from '../logComponent/personalCash.vue' //11个人提现
import corporateRefund from '../logComponent/corporateRefund.vue' //12企业退款
import recharge from '../logComponent/recharge.vue' //12企业退款
export default {
    name: 'ScheduleComponent',
    data() {
        return {
            loading: false,
            currentType: this.$route.params.type,
            global: {},
            txShowBth: false, //个人提现
            tkShowBtn: false, //企业退款
            czShowBtn: false, //对公充值
            // optShowOne: false,
            // optShowTwo: false,
            adminShow: false
        }
    },

    created() {
        this.global = this.GLOBAL;
        let department = JSON.parse(localStorage.getItem('userinfo')).department;
        let currentUserID = JSON.parse(localStorage.getItem('userinfo')).userid;
        if (department == "提现一部" || department == "提现二部") {
            this.txShowBth = true
        } else if (department == "退款一部" || department == "退款二部") {
            this.tkShowBtn = true;
        } else if (department == "充值一部" || department == "充值二部") {
            this.czShowBtn = true;
        }

        if (currentUserID == "8bd928c61ae84a28b5257f612e3b5b43") {
            this.adminShow = true;
        }

    },
    components: {
        examineComponent,
        postComponent,
        pullBlackComponent,
        feedbackComponent,
        entryException,
        leaveException,
        breakComponent,
        personalCash,
        corporateRefund,
        recharge

    },
    mounted() {},
    methods: {
        // getType(type) {
        //     this.currentType = type;
        // },

        // 查看会员详情
        handleClickNickName(row) {
            this.userid = row.companyid;
            this.nickName = row.companyname;
            this.dialogVisible = true;
        },
        goBack() {
            // this.$router.go(-1); //返回上一层
            this.$router.back(-1);
            // this.$router.push({
            //     name: 'logList'
            // })
        }
    }
}